package csomag.telefonregiszter;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import csomag.telefonregiszter.hibernate.Hibernate;

public class App {
	private ApplicationContext context =  new ClassPathXmlApplicationContext("beans.xml");
	private Hibernate hibernate;
	
    public static void main( String[] args )
    {
        new App();
    }
    
	private App(){
    	hibernate = (Hibernate)context.getBean("hibernate");
    }
}